package com.zhangxin.designmode.fiveprinciple.liskovsubstitutionprinciple.after;

import sun.net.www.http.HttpClient;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author zhangxin
 * @date 2022/4/9
 */
public class DemoMain {

    /**
     * @param args
     * @param client
     * @param request
     */

    public static void main(String[] args, HttpClient client, HttpServletRequest request) throws Exception {
        Demo demo = new Demo();
        demo.domeFunction(new SecurityTransporter(client, "", ""), request);
    }

    static class Demo {
        public void domeFunction(Transporter transporter, HttpServletRequest request) throws Exception {
            HttpServletResponse response = transporter.sendRequest(request);
        }

    }
}
